//引入Vue
import Vue from "vue";
//引入路由
import VueRouter from "vue-router";

Vue.use(VueRouter)

//路由表 / 路由数组
const routes = [
    {path:"/",redirect:"/login"},
    {name: "login",path:"/login",component:() => import("@/views/LoginView.vue"),},
    {
        name: "main",path:"/main",component: () => import("@/views/MainView.vue"),
        children:[
            {name: "companyCheck",path:"companyCheck", component: () => import("@/views/CompanyCheck.vue")},
            {path: 'manageAdmin', name: 'manageAdmin', component: () => import("@/views/ManageAdmin.vue")},
            {path: 'manageUser',  name: 'manageUser',  component: () => import("@/views/ManageUser.vue") },
            {path: 'manageEnterprise',  name: 'manageEnterprise',  component: () => import("@/views/ManageEnterprise.vue") },
            {path: 'manageHR',  name: 'manageHR',  component: () => import("@/views/ManageHR.vue") },
            {path: 'manageIndustry',  name: 'manageIndustry',  component: () => import("@/views/ManageIndustry.vue") },
            {path: 'managePosition',  name: 'managePosition',  component: () => import("@/views/ManagePosition.vue") },
            {path: 'manageJobPosting',  name: 'manageJobPosting',  component: () => import("@/views/ManageJobPosting.vue") },
            {path: 'reviewJobPosting',  name: 'reviewJobPosting',  component: () => import("@/views/ReviewJobPosting.vue") },
            {path: 'recruitmentInformationReviewRecord',  name: 'recruitmentInformationReviewRecord',  component: () => import("@/views/RecruitmentInformationReviewRecord.vue") },
            
            {path: 'manageMenu',  name: 'manageMenu',  component: () => import("@/view/manageMenu.vue") }

        ]
    },
]

//创建路由实例
const router = new VueRouter({
    routes
})

//暴露
export default router;
